package payroll25.trans;

import payroll25.Employee;

public class ChangeNameTrasaction extends ChangeEmployeeTransaction{

    private String newName;

    public ChangeNameTrasaction(int empId, String newName) {
        super(empId);
        this.newName = newName;
    }
    @Override
    protected void doChange(Employee e) {
        e.setName(newName);
    }

}
